<html>
<head></head>

<?php 
	$ci = &get_instance(); 
	$COD = $ci->cod_data_entity->init('id',$_GET['id']);
	$USER = $ci->user_entity->init('id',$COD->getUserId());
?>

<style>
#page{
	margin:0 auto;
	width:800px;height:800px;
	border:1px solid #222222;
}
#logo{
	float:left;
	clear:both;
}
.clr{
	width:0px;height:0px;overflow:hidden;clear:both;
}
#header{
	width:100%;height:200px;margin-top:15px;float:left;border-top:1px solid #222222;border-bottom:1px solid #222222;
}
#left_header{
	width:300px;float:left;margin-top:20px;margin-left:15px;
}
#right_header{
	width:300px;float:right;margin-top:20px;margin-right:15px;
}
#body_content{
	width:800px;float:left;margin-top:15px;margin-left:15px;
}
</style>



<body>
	<div id="page">
		<div id="logo">
			<img src="<?php echo site_url();?>addons/default/themes/clicxa/css/images/logo.jpg" border="0"/>
		</div>
		<div class="clr"></div>
		<div id="header">
			<div id="left_header">
				To,<br/>
				<?php echo $USER->getFullName();?> </br>
				<?php echo $USER->getCodAddress();?> </br>
				<?php echo $USER->getCodCity();?> </br>
				<?php echo $USER->getCodState();?> </br>
				<?php echo $USER->getCodePostalCode();?> </br>
				<?php echo $USER->getCodMobile();?>
			</div>
			<div id="right_header">
				<?php echo $USER->getUserName();?> </br> 
				<?php echo $ci->module_helper->getBlog(2,'intro');?>
			</div>
		</div>
		<div id="body_content">
			<?php 
				$content = $ci->module_helper->getBlog(2,'body');
				$content = str_replace('{###CODE###}',$COD->getCode(),$content);
				echo $content;
			?>
		</div>
	</div>	
</body>
</html>
